package com.twu.biblioteca;


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created with IntelliJ IDEA.
 * User: twer
 * Date: 10/4/13
 * Time: 1:15 AM
 * To change this template use File | Settings | File Templates.
 */
public class User {
    public String getUserInput(String prompt) {
        String inputLine = null;
        System.out.print(prompt + " ");
        try{
            BufferedReader  input= new BufferedReader(new InputStreamReader(System.in));
            inputLine = input.readLine();
            if(inputLine.length() == 0) return null;

        } catch (IOException e) {
            System.out.println("IOException: " + e);

        }
        return inputLine;
    }
}
